const router = require('express').Router()
const { CreateVerificationCode } = require('../../handler/create-verification-code');

// * 获取验证码
router.get('/getVerificationCode', async (req, res) => {
  const { text, data: codeSvg } = CreateVerificationCode();

  const data = {
    text,
    codeSvg,
  };
  console.log(data);
  res.send(ok({ data }));
});

module.exports = router